package com.neu.util;

import java.util.Base64;

public class Base64Util {
    public static String encode(String str){
        String t="";
        byte[] b=str.getBytes();
        t=Base64.getEncoder().encodeToString(b);
        return t;
    }

    public static String decode(String str){
        String t="";
        byte[] b=Base64.getDecoder().decode(str);
        t=new String(b);
        return t;
    }

}
